<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

//return [
//    '__pattern__' => [
//        'name' => '\w+',
//    ],
//    '[hello]'     => [
//        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
//        ':name' => ['index/hello', ['method' => 'post']],
//    ],
//
//];


use think\Route;
// restful风格API

Route::resource(':version/app','app/:version.APP');
Route::resource(':version/user','app/:version.User');
Route::resource(':version/role','app/:version.Role');
Route::resource(':version/computer','app/:version.Computer');
Route::resource(':version/exchange','app/:version.Exchange');
Route::resource(':version/mycard','app/:version.MyCard');
Route::resource(':version/myprop','app/:version.MyProp');
Route::resource(':version/matchRoom','app/:version.MatchRoom');
Route::resource(':version/prop','app/:version.Prop');
Route::resource(':version/withdraw','app/:version.Withdraw');




//AppController
//登录
Route::rule(':version/login','app/:version.App/login');
//微信验证
Route::rule(':version/wxcheck','app/:version.App/wxCheck');
//测试
Route::rule(':version/test','app/:version.App/test');



//UserController
//个人信息页面
Route::rule(':version/getuserinfo','app/:version.User/getUserInfo');
//重置免费次数
Route::rule(':version/resetfreenumber','app/:version.User/resetFreeNumber');
//消息通知
Route::rule(':version/message','app/:version.User/message');
Route::rule(':version/editvote','app/:version.User/editVote');
//排行榜
Route::rule(':version/ranklist','app/:version.User/RankList');
//我的奖金
Route::rule(':version/reword','app/:version.User/reword');


//RoleController [人物展示]
Route::rule(':version/showrole','app/:version.Role/showRole');


//ComputerController [电脑匹配]
Route::rule(':version/match','app/:version.Computer/match');


//MatchRoomController  [ 和好友一起玩]
//点击对战生成游戏房间
Route::rule(':version/room','app/:version.MatchRoom/room');
//邀请好友
Route::rule(':version/invite','app/:version.MatchRoom/invite');
//人机对战
Route::rule(':version/manmachine','app/:version.MatchRoom/ManMachine');


//MyPropController [我的道具]
Route::rule(':version/showmyprop','app/:version.MyProp/showMyProp');


//MyCardController  [我的球卡]
Route::rule(':version/showmycard','app/:version.MyCard/showMyCard');
//球星卡列表
Route::rule(':version/cardlist','app/:version.MyCard/cardList');


//ExchangeController  [兑换记录]
Route::rule(':version/changecard','app/:version.Exchange/changeCard');



//道具
//道具列表
Route::rule(':version/prop','app/:version.Prop/index','OPTIONS');
//购买道具
Route::rule(':version/order','app/:version.Prop/order');




//提现
//企业付款
Route::rule(':version/enterprisepay','app/:version.Withdraw/EnterprisePay');
//回调地址
Route::rule(':version/notifyurl','app/:version.Withdraw/notifyUrl');